/*
 * 1283. 三数之中的最大值
 * 给三个整数，求他们中的最大值。
 * 
 * 样例
 * Given num1 = 1, num2 = 9, num3 = 0, return 9.
 * 
 * 2018.06.10 @jeyming
 */
package max_of_3_numbers_1283;

public class Max_of_3_numbers_1283 {
    /**
     * @param num1: An integer
     * @param num2: An integer
     * @param num3: An integer
     * @return: an interger
     */
    public static int maxOfThreeNumbers(int num1, int num2, int num3) {
        // write your code here
    	int max = num1;
    	if(max < num2)
    		max = num2;
    	if(max < num3)
    		max = num3;
    	return max;
    }

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		System.out.println(maxOfThreeNumbers(1,9,0));
	}

}
